<ol class="breadcrumb" >
    <li> <i class="fa fa-anchor"></i>
        &nbsp;用户管理
    </li>
    <li>添加用户</li>
</ol>

<div class="col-xs-12 info-center">
    <div class="bs-callout bs-callout-warning">
        <h4>
            系统使用院校: <strong>{:C('COLLEGE_NAME')}</strong>
        </h4>
    </div>
</div>

<div class="col-xs-12 info-center">
    <div class="panel panel-mcit">
        <div class="panel-heading" >
            <h5 class="panel-title">添加用户
        </div>
        <div class="panel-body">
            <div class="alert alert-warning">
                <p><i class="fa fa-paperclip"></i>&nbsp;准确填写用户信息</p>
            </div>
            <form class="mcit-dataform" id="data_form" method="post" action="__URL__/addUser">
                <div class="panel-footer">
                    <div class="panel-mcit">

                        <div class="col-xs-6">
                            <div class="input-group">
                                <span class="input-group-addon">姓名</span>
                                <input type="text" id="name" name="name" class="form-control" placeholder="姓名">
                            </div>
                        </div>
                        <div class="clearfix" ></div>
                        <div class="col-xs-6">
                            <div class="input-group">
                                <span class="input-group-addon">性别</span>
                                <select name="sex" id="sex" class="form-control required">
                                        <option value="1">男</option>
                                        <option value="2">女</option>
                                </select>
                            </div>
                        </div>
                        <div class="col-xs-6">
                            <div class="input-group">
                                <span class="input-group-addon">会员卡号</span>
                                <input type="text" id="user_pay_card" name="user_pay_card" class="form-control" placeholder="会员卡号">
                            </div>
                        </div><div class="col-xs-6">
                        <div class="input-group">
                            <span class="input-group-addon">联系电话</span>
                            <input type="text" id="phone" name="phone" class="form-control" placeholder="联系电话">
                        </div>
                    </div>
                        <div class="col-xs-6">
                            <div class="input-group">
                                <span class="input-group-addon">账号</span>
                                <input type="text" id="account" name="account" class="form-control" placeholder="账号">
                            </div>
                        </div>
                        <div class="clearfix" ></div>
                        <div class="col-xs-6">
                            <button type="submit" class="btn btn-warning"><i class="fa fa-upload"></i>&nbsp;确定添加</button>
                        </div>
                        <div class="clearfix"></div>

                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<script>
    /*$("#data_form").ajaxForm({
        dataType:'json',
        clearForm:true,
        beforeSubmit:function(){
            if($("#name").val()==''){
                alertify.error("请填写账号使用者姓名");
                return false;
            }
            if($("#account").val()==''){
                alertify.error("请填写登录账号");
                return false;
            }
            *//*if($("#role").val()==''){
                alertify.error("请选择角色");
                return false;
            }*//*
            return true
        },
        success:function(data){
            if(data.state==100){
                alertify.success(data.msg);
                location.href = data.url;
            }else{
                alertify.error(data.msg);
            }
        }
    });*/
</script>